// DataController.h: interface for the DataController class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_DATACONTROLLER_H__5AEAB628_5218_4781_8AED_255D8F618952__INCLUDED_)
#define AFX_DATACONTROLLER_H__5AEAB628_5218_4781_8AED_255D8F618952__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "StructureAndConst.h"
#include "afxmt.h"
class BaseDispSprite;
class PlayerLg;
class DataController  
{
public:
	DataController();
	virtual ~DataController();
	static bool Initialize();
	static void Uninitialize();
	static void UpdateKeyState(BYTE key);
	static void World2View(float &x, float &y);
	static void UpdateView(RECT rect){m_rectView=rect;}
	static RECT GetViewRect(){return m_rectView;}
	static void SetPlayerLg(PlayerLg* pPlayerLgSprite){m_pPlayerLgSprite=pPlayerLgSprite;}
	static void SplitString( CString& csparse, CStringArray& arlist, const CString& csSplitMark );
	static CMutex m_mutexUpdateMap;
	static Character_t m_ch[6];
private:
	static RECT m_rectView;
	static PlayerLg* m_pPlayerLgSprite;

};

#endif // !defined(AFX_DATACONTROLLER_H__5AEAB628_5218_4781_8AED_255D8F618952__INCLUDED_)
